home *** CD-ROM | disk | FTP | other *** search
/ Looney Tunes Photo Print Studio (Special Edition) / LIVEPIX.iso / ORIENTAT / DATA / LPORIENT.DXR / 00001_main movie scripts.ls next >
Encoding:
Text File  |  1998-01-16  |  9.9 KB  |  252 lines

  1. global gSystem, gPathSep, gHistory, gCurr, gLastRollover, gTA, gTB, gTC, gTD, gTE, gTF, gTG, gTH, gTI, gTJ, gTK, gTL, gTM, gGroup2, gGroup3, gGroup4, gMenu, gExit, gSubmenu, gNavGroup2, gNavGroup3, gNavGroup4, gNavA, gNavB, gNavC, gNavD, gNavE, gNavF, gNavG, gNavH, gNavI, gNavJ, gNavK, gNavM, gNavMenu, gNavToMenu, gNavToExit, gNavToGp2, gNavToGp3, gNavToGp4, gTADown, gTBDown, gTCDown, gTDDown, gTEDown, gTFDown, gTGDown, gTHDown, gTIDown, gTJDown, gTKDown, gTLDown, gTMDown, gGroup2Down, gGroup3Down, gGroup4Down, gMenuDown, gExitDown, gSubmenuDown, gTARoll, gTBRoll, gTCRoll, gTDRoll, gTERoll, gTFRoll, gTGRoll, gTHRoll, gTIRoll, gTJRoll, gTKRoll, gTLRoll, gTMRoll, gGroup2Roll, gGroup3Roll, gGroup4Roll, gMenuRoll, gExitRoll, gSubmenuRoll, gsTA, gsTB, gsTC, gsTD, gsTE, gsTF, gsTG, gsTH, gsTI, gsTJ, gsTK, gsTL, gsTM, gsMenu, gsExit, gsGroup2, gsGroup3, gsGroup4, gsNavBack, gsNavMsg, gsHist1, gsHist2, gsHist3, gsHist4, gsHist5, gsHist6, gsHist7, gsInstall, gAudioList, gAudioPath, gAudioPlayFlag, gUtil, gMusic, gMusicPlayFlag
  2.  
  3. on startMovie
  4.   set audio_path to the pathName & "audio\"
  5.   add(the searchPath, audio_path)
  6. end
  7.  
  8. on Initialize
  9.   global gToFrame, gInitDelay, gCompletedBasics
  10.   set gCompletedBasics to 0
  11.   if voidp(gPathSep) then
  12.     set gPathSep to "\"
  13.   end if
  14.   MessagePut("initialize...")
  15.   InitPuppets()
  16.   InitAudio()
  17.   InitHistory()
  18.   set gInitDelay to the ticks + (3 * 60)
  19.   if voidp(gToFrame) then
  20.     set gToFrame to "Menu"
  21.     MessagePut("gToFrame is undef in init!")
  22.     set gMusic to #reggae
  23.     PlayAudio(gMusic, 3)
  24.     go("Wait")
  25.     exit
  26.   else
  27.     MessagePut("gToFrame is" && gToFrame)
  28.   end if
  29.   set gMusic to #reggae
  30.   PlayAudio(gMusic, 3)
  31.   go("Wait")
  32. end
  33.  
  34. on InitPuppets
  35.   global gToFrame
  36.   set gLastRollover to 0
  37.   set gsInstall to 48
  38.   puppetSprite(gsInstall, 1)
  39.   if gToFrame = "Menu" then
  40.     set the castNum of sprite gsInstall to the number of member "cInstallMenu"
  41.   else
  42.     set the castNum of sprite gsInstall to the number of member "cInstallBasics"
  43.   end if
  44.   set vOffset to 32
  45.   set gsTA to vOffset
  46.   set gsGroup2 to vOffset + 1
  47.   set gsGroup3 to vOffset + 2
  48.   set gsGroup4 to vOffset + 3
  49.   set gsTB to vOffset
  50.   set gsTD to vOffset + 1
  51.   set gsTE to vOffset + 2
  52.   set gsTF to vOffset + 3
  53.   set gsTC to vOffset + 4
  54.   set gsTG to vOffset + 5
  55.   set gsTM to vOffset + 6
  56.   set gsTH to vOffset
  57.   set gsTK to vOffset + 1
  58.   set gsTI to vOffset
  59.   set gsTJ to vOffset + 1
  60.   set gsTL to vOffset + 2
  61.   set gsHist1 to vOffset + 6
  62.   set gsHist2 to vOffset + 7
  63.   set gsHist3 to vOffset + 8
  64.   set gsHist4 to vOffset + 9
  65.   set gsHist5 to vOffset + 10
  66.   set gsHist6 to vOffset + 11
  67.   set gsHist7 to vOffset + 12
  68.   set gsNavBack to 43
  69.   set gsNavMsg to 44
  70.   set gsMenu to 46
  71.   set gsExit to 45
  72.   set gTA to the number of member "cTA"
  73.   set gTARoll to the number of member "cTARoll"
  74.   set cTADown to the number of member "cTADown"
  75.   set gGroup2 to the number of member "cGroup2"
  76.   set gGroup2Roll to the number of member "cGroup2Roll"
  77.   set gGroup2Down to the number of member "cGroup2Down"
  78.   set gGroup3 to the number of member "cGroup3"
  79.   set gGroup3Roll to the number of member "cGroup3Roll"
  80.   set gGroup3Down to the number of member "cGroup3Down"
  81.   set gGroup4 to the number of member "cGroup4"
  82.   set gGroup4Roll to the number of member "cGroup4Roll"
  83.   set gGroup4Down to the number of member "cGroup4Down"
  84.   set gMenu to the number of member "cMenu"
  85.   set gMenuRoll to the number of member "cMenuRoll"
  86.   set gMenuDown to the number of member "cMenuDown"
  87.   set gExit to the number of member "cExit"
  88.   set gExitRoll to the number of member "cExitRoll"
  89.   set gExitDown to the number of member "cExitDown"
  90.   set gSubmenu to the number of member "cSubmenu"
  91.   set gSubmenuRoll to the number of member "cSubmenuRoll"
  92.   set gSubmenuDown to the number of member "cSubmenuDown"
  93.   set gTB to the number of member "cTB"
  94.   set gTBRoll to the number of member "cTBRoll"
  95.   set gTBDown to the number of member "cTBDown"
  96.   set gTC to the number of member "cTC"
  97.   set gTCRoll to the number of member "cTCRoll"
  98.   set gTCDown to the number of member "cTCDown"
  99.   set gTD to the number of member "cTD"
  100.   set gTDRoll to the number of member "cTDRoll"
  101.   set gTDDown to the number of member "cTDDown"
  102.   set gTE to the number of member "cTE"
  103.   set gTERoll to the number of member "cTERoll"
  104.   set gTEDown to the number of member "cTEDown"
  105.   set gTF to the number of member "cTF"
  106.   set gTFRoll to the number of member "cTFRoll"
  107.   set gTFDown to the number of member "cTFDown"
  108.   set gTG to the number of member "cTG"
  109.   set gTGRoll to the number of member "cTGRoll"
  110.   set gTGDown to the number of member "cTGDown"
  111.   set gTH to the number of member "cTH"
  112.   set gTHRoll to the number of member "cTHRoll"
  113.   set gTHDown to the number of member "cTHDown"
  114.   set gTI to the number of member "cTI"
  115.   set gTIRoll to the number of member "cTIRoll"
  116.   set gTIDown to the number of member "cTIDown"
  117.   set gTJ to the number of member "cTJ"
  118.   set gTJRoll to the number of member "cTJRoll"
  119.   set gTJDown to the number of member "cTJDown"
  120.   set gTK to the number of member "cTK"
  121.   set gTKRoll to the number of member "cTKRoll"
  122.   set gTKDown to the number of member "cTKDown"
  123.   set gTM to the number of member "cTM"
  124.   set gTMRoll to the number of member "cTMRoll"
  125.   set gTMDown to the number of member "cTMDown"
  126.   set gNavMenu to the number of member "cNavMenu"
  127.   set gNavGroup2 to the number of member "cNavGroup2"
  128.   set gNavGroup3 to the number of member "cNavGroup3"
  129.   set gNavGroup4 to the number of member "cNavGroup4"
  130.   set gNavToMenu to the number of member "cNavToMenu"
  131.   set gNavToExit to the number of member "cNavToExit"
  132.   set gNavToGp2 to the number of member "cNavToGroup2"
  133.   set gNavToGp3 to the number of member "cNavToGroup3"
  134.   set gNavToGp4 to the number of member "cNavToGroup4"
  135.   set gNavA to the number of member "cNavA"
  136.   set gNavB to the number of member "cNavB"
  137.   set gNavC to the number of member "cNavC"
  138.   set gNavD to the number of member "cNavD"
  139.   set gNavE to the number of member "cNavE"
  140.   set gNavF to the number of member "cNavF"
  141.   set gNavG to the number of member "cNavG"
  142.   set gNavH to the number of member "cNavH"
  143.   set gNavI to the number of member "cNavI"
  144.   set gNavJ to the number of member "cNavJ"
  145.   set gNavK to the number of member "cNavK"
  146.   set gNavM to the number of member "cNavM"
  147.   puppetSprite(gsNavBack, 1)
  148.   puppetSprite(gsNavMsg, 1)
  149. end
  150.  
  151. on InitAudio
  152.   global gLastSnd1, gLastSnd2, gLastSnd3, gToFrame
  153.   set gLastSnd1 to EMPTY
  154.   set gLastSnd2 to EMPTY
  155.   set gLastSnd3 to EMPTY
  156.   set gAudioList to [1: "B0050,255", 2: "C0120,255", 3: "D0050,255", 4: "F0090,255", #basics: "A0450,255", 5: "Misc01,255", #reggae: "Brh66_02,100", #intro: "Misc02,255", #select: "Misc03,255", #basicscomplete: "A0430,255"]
  157.   set gAudioPath to the pathName & "AUDIO" & gPathSep
  158.   set gAudioPlayFlag to 1
  159.   if gToFrame = #menu then
  160.     set gAudioPlayFlag to 1
  161.   end if
  162.   set the volume of sound 1 to 255
  163.   set the volume of sound 3 to 100
  164. end
  165.  
  166. on InitHistory
  167.   set gHistory to []
  168.   set gCurr to #init
  169. end
  170.  
  171. on stopMovie
  172. end
  173.  
  174. on AddToHistory aChar
  175.   MessagePut("adding" && aChar && "to history")
  176.   if aChar = "B" then
  177.     set gTB to the number of member "cxTB"
  178.     set gTBRoll to the number of member "cxTBRoll"
  179.     set gTBDown to the number of member "cxTBDown"
  180.   else
  181.     if aChar = "C" then
  182.       set gTC to the number of member "cxTC"
  183.       set gTCRoll to the number of member "cxTCRoll"
  184.       set gTCDown to the number of member "cxTCDown"
  185.     else
  186.       if aChar = "D" then
  187.         set gTD to the number of member "cxTD"
  188.         set gTDRoll to the number of member "cxTDRoll"
  189.         set gTDDown to the number of member "cxTDDown"
  190.       else
  191.         if aChar = "E" then
  192.           set gTE to the number of member "cxTE"
  193.           set gTERoll to the number of member "cxTERoll"
  194.           set gTEDown to the number of member "cxTEDown"
  195.         else
  196.           if aChar = "F" then
  197.             set gTF to the number of member "cxTF"
  198.             set gTFRoll to the number of member "cxTFRoll"
  199.             set gTFDown to the number of member "cxTFDown"
  200.           else
  201.             if aChar = "G" then
  202.               set gTG to the number of member "cxTG"
  203.               set gTGRoll to the number of member "cxTGRoll"
  204.               set gTGDown to the number of member "cxTGDown"
  205.             else
  206.               if aChar = "H" then
  207.                 set gTH to the number of member "cxTH"
  208.                 set gTHRoll to the number of member "cxTHRoll"
  209.                 set gTHDown to the number of member "cxTHDown"
  210.               else
  211.                 if aChar = "I" then
  212.                   set gTI to the number of member "cxTI"
  213.                   set gTIRoll to the number of member "cxTIRoll"
  214.                   set gTIDown to the number of member "cxTIDown"
  215.                 else
  216.                   if aChar = "J" then
  217.                     set gTJ to the number of member "cxTJ"
  218.                     set gTJRoll to the number of member "cxTJRoll"
  219.                     set gTJDown to the number of member "cxTJDown"
  220.                   else
  221.                     if aChar = "K" then
  222.                       set gTK to the number of member "cxTK"
  223.                       set gTKRoll to the number of member "cxTKRoll"
  224.                       set gTKDown to the number of member "cxTKDown"
  225.                     else
  226.                       if aChar = "L" then
  227.                         set gTL to the number of member "cxTL"
  228.                         set gTLRoll to the number of member "cxTLRoll"
  229.                         set gTLDown to the number of member "cxTLDown"
  230.                       else
  231.                         if aChar = "M" then
  232.                           set gTM to the number of member "cxTM"
  233.                           set gTMRoll to the number of member "cxTMRoll"
  234.                           set gTMDown to the number of member "cxTMDown"
  235.                         end if
  236.                       end if
  237.                     end if
  238.                   end if
  239.                 end if
  240.               end if
  241.             end if
  242.           end if
  243.         end if
  244.       end if
  245.     end if
  246.   end if
  247. end
  248.  
  249. on exitFrame
  250.   RolloverCheck()
  251. end
  252.